﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Ylh.IDAL;
using System.Data;

namespace Ylh.BLL
{
    public class CompetenceBLL
    {
        string ConStr = string.Empty;

        public CompetenceBLL(string ConStr)
        {
            this.ConStr = ConStr;
        }
        /// <summary>
        /// 根据编号获取权限信息
        /// </summary>
        /// <param name="ConStr"></param>
        /// <param name="ID">编号</param>
        /// <param name="IsParent">指定编号是否是父节点编号</param>
        /// <returns></returns>
        public DataTable GetCompetenceByID(decimal ID, bool? IsParent)
        {
            Ylh.IDAL.ICompetence ICom = Ylh.FactoryDAL.DataAccess.CreateICompetence();
            return ICom.GetCompetenceByID(ConStr, ID, IsParent);
        }


        /// <summary>
        /// 系统管理员专用
        /// </summary>
        /// <param name="ConStr"></param>
        /// <returns></returns>
        public DataTable GetCompetenceByCode()
        {
            Ylh.IDAL.ICompetence ICom = Ylh.FactoryDAL.DataAccess.CreateICompetence();
            return ICom.GetCompetenceByCode(ConStr);
        }
    }
}
